<%@page import="org.jeecgframework.web.util.StaticValue" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="evaluateList" fitColumns="true" title="巡检评价" idField="id"
                    actionUrl="cbsInspectionEvaluateController.do?datagridOfIeListOfIeReport&${params }" fit="true" queryMode="group" >
            <t:dgCol title="影院主键" field="id" hidden="true" width="120"/>
            <t:dgCol title="影院名称" field="cmName" query="true" queryMode="single" width="140" align="center"/>
<%--            <t:dgCol title="服务单ID" field="planId" query="true" url="cbsInspectionEvaluateController.do?detailsOfPlan&planId={planId}" funname="planDetails"  queryMode="single" width="80" align="center"/>--%>
            <t:dgCol title="设备数量" 	field="cmEsCount" width="40" align="center"/>
            <t:dgCol title="总体平均分" 		field="avgLastEvaluate" width="80" align="center"/>
            <t:dgCol title="服务态度平均分" 	field="avgServiceEvaluate" width="80" align="center"/>
            <t:dgCol title="沟通流畅平均分" 	field="avgTalkEvaluate" width="80" align="center"/>
            <t:dgCol title="巡检效果平均分" 	field="avgEffectEvaluate" width="80" align="center"/>
            <t:dgCol title="培训效果平均分" 	field="avgTrainEvaluate" width="80" align="center"/>
            <t:dgCol title="技能平均分" 		field="avgSkillEvaluate" width="80" align="center"/>
<%--            <t:dgCol title="评语" 		field="opinion" width="80" align="center"/>--%>
<%--            <t:dgCol title="工程师" 		field="egName" width="80" align="center"/>--%>
<%--            <t:dgCol title="巡检单位" 	field="ipCompany" width="80" align="center"/>--%>
<%--            <t:dgCol title="评价人"		field="evaluateName" queryMode="single" width="80" sortable="false" query="true" align="center"/>--%>
<%--            <t:dgCol title="评价时间"	field="evaluateTime" formatter="yyyy-MM-dd hh:mm" width="80" sortable="true" align="center"/>--%>
            <t:dgCol title="操作" field="opt" width="100" align="center"/>
<%--            <t:dgFunOpt title="查看" funname="goView(id)" ></t:dgFunOpt>--%>
            <t:dgFunOpt title="详情" funname="goViewDetial(id)" ></t:dgFunOpt>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        //给时间控件加上样式
        $("#evaluateListtb").find("input[name='actualDate_begin']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
        $("#evaluateListtb").find("input[name='actualDate_end']").attr("class", "Wdate").attr("style", "height:20px;width:90px;").click(function () {
            WdatePicker({dateFmt: 'yyyy-MM-dd'});
        });
    });
    function goViewDetial(id) {
        createdetailwindow('评价详细', 'cbsInspectionEvaluateController.do?goEvaluateDetail&id=' + id + '&${params }',1150,560);
<%--        createdetailwindow('', 'inspectionWx.do?goPcEvaluateDetail&id=' + id,900,560);--%>
    }
    function planDetails(fName,url){
        addOneTab("计划详情",url);
    }
</script>
